<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	isELIgnored="false" session="true"%>
<%@taglib prefix="s" uri="http://www.springframework.org/tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>">

<title>维修单维护</title>
<%@ include file="/page/comPage/comCSS.html"%>
<%@ include file="/page/comPage/navbar.html"%>
</head>
<body>
	<div class="container-fluid">
		<div class="col-lg-12 col-md-12 col-sm-12 btnDivCss">
			<button class="btn btn-info" id="query_btn">
				<s:message code="QUERY_TAG" />
			</button>

			<button class="btn btn-warning" id="update_btn">
				更新
			</button>

			<button class="btn btn-danger" id="del_btn">
				<s:message code="DELETE_TAG" />
			</button>

			<button class="btn btn-success" id="save_btn">
				<s:message code="SAVE_TAG" />
			</button>

			<button class="btn btn-primary" id="clear_btn">
				<s:message code="CLEAR_TAG" />
			</button>

			<button class="btn btn-success" id="repair_btn">
				维修
			</button>

			<button class="btn btn-primary" id="comp_btn">
				维修完成
			</button>

			<button class="btn btn-info" id="changeRepair_btn">
				维修单转单
			</button>
		</div>


		<div class="col-lg-12 col-md-12 col-sm-12" id="rightDiv">
			<fieldset>
				<legend>维修单信息</legend>
			</fieldset>
			<form class="form-horizontal">
				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4" for="repairId">维修单号</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
						<input type="text" class="form-control" id="repairId" />
					</div>
				</div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
                                    <label class="control-label col-lg-4 col-md-4 col-sm-4"
                                           for="responsible_usr">维修单负责人</label>
                                    <div class="col-lg-8 col-md-8 col-sm-8">
                                        <input type="text" class="form-control " id="responsible_usr" />
                                    </div>
                                </div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="fab_id_fk">厂别</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
						<select class="form-control" id="fab_id_fk">
						</select>
					</div>
				</div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="line_id_fk">线别</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
						<select class="form-control" id="line_id_fk">
						</select>
					</div>
				</div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="tool_id_fk">设备ID</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
						<select class="form-control" id="tool_id_fk">
						</select>
					</div>
				</div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="assistants">协助人员</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
						<input type="text" class="form-control " id="assistants" />
					</div>
				</div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="tech_confirm_flg">是否需要工艺确认</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
						<select class="form-control" id="tech_confirm_flg">
						</select>
					</div>
				</div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="qual_confirm_flg">是否需要质量确认</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
						<select class="form-control" id="qual_confirm_flg">
						</select>
					</div>
				</div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="prod_confirm_flg">是否需要生产确认</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
						<select class="form-control" id="prod_confirm_flg">
						</select>
					</div>
				</div>


				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="downtime">停机时间</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
						<input type="text" class="form-control " id="downtime" />
					</div>
				</div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="error_dsc">故障描述</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
							<textarea  name="message"  rows="2" class="form-control"
									   id="error_dsc"  style="resize:none;"></textarea>
					</div>
				</div>


				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						for="error_analysis">故障原因分析</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
							<textarea  name="message"  rows="2" class="form-control"
							id="error_analysis"  style="resize:none;"></textarea>
					</div>
				</div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="repair_dsc">维修内容描述</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
							<textarea  name="message"  rows="2" class="form-control"
									   id="repair_dsc"  style="resize:none;"></textarea>
					</div>
				</div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="repair_result">维修后确认项目及结果</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
							<textarea  name="message"  rows="2" class="form-control"
									   id="repair_result"  style="resize:none;"></textarea>
					</div>
				</div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="eqt_confirmer">设备确认人</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
						<input type="text" class="form-control " id="eqt_confirmer" />
					</div>
				</div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="tech_confirmer">工艺确认人</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
						<input type="text" class="form-control " id="tech_confirmer" />
					</div>
				</div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="qa_confirmer">质量确认人</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
						<input type="text" class="form-control " id="qa_confirmer" />
					</div>
				</div>

				<div class="form-group col-lg-3 col-md-3 col-sm-3">
					<label class="control-label col-lg-4 col-md-4 col-sm-4"
						   for="pro_confirmer">生产确认人</label>
					<div class="col-lg-8 col-md-8 col-sm-8">
						<input type="text" class="form-control " id="pro_confirmer" />
					</div>
				</div>

			</form>
		</div>

		<div class="col-lg-12 col-md-12 col-sm-12 UnderDiv" style="position: relative;">
			<fieldset>
				<legend>维修单信息列表</legend>
			</fieldset>
			<div id="repairOrderDiv" class="col-lg-12 col-md-12 col-sm-12">
				<table id="repairOrderGrd" style="height: 1px;"></table>
				<div id="repairOrderPg"></div>
			</div>
		</div>


		<!-- 绑定物料 模态框-->
		<div id="bindMtrlDialog" class="modal fade"
			 data-target=".bs-example-modal-lg" tabindex="-1" role="dialog" aria-labelledby="title" aria-hidden="true">
			<div class="modal-dialog" style="width: 800px">
				<div class="modal-content">
					<!-- 模框头部 -->
					<div class="modal-header">
						<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
						<h4 class="modal-title">工单绑定物料</h4>
					</div>
					<!-- 模框主体 -->
					<div class="modal-body">
						<div class="form-group col-lg-6 col-md-6 col-sm-6">
							<label class="control-label col-lg-4 col-md-4 col-sm-4" for="mtrlCateSel">
								<s:message code="MTRL_CATE_TAG" />
							</label>
							<div class="col-lg-8 col-md-8 col-sm-8" >
								<select class="form-control"  id="mtrlCateSel" style="width: 80%"></select>
							</div>
						</div>
						<div class="container-fluid">
							<div id="woMtrlDiv" class="col-lg-12 col-md-12 col-sm-12">
								<table id="woMtrlGrd"></table>
								<div id="woMtrlPg"></div>
							</div>
						</div>
					</div>
					<!-- 模框底部 -->
					<div class="modal-footer">
						<button id="bindMtrlDialog_cancelBtn"type="button" class="btn btn-default" data-dismiss="modal">
							<s:message code="CANCEL_TAG" />
						</button>
						<button id="bindMtrlDialog_sureBtn"type="button" class="btn btn-primary">
							<s:message code="SURE_COMMIT_TAG" />
						</button>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
<%@ include file="/page/comPage/comJS.html"%>
<script src="lib/datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
<script
	src="lib/datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
<script type="text/javascript" src="js/page/3000/R100.js"></script>
</html>